<div class="row">
    <div class="span12">
        <div class="span2 text-left">
            <h1>
                <?php echo $this->Html->link('<i class="icon-arrow-left-3"></i>', '/Admins', array('escape' => false, 'title' => 'Back')) ?>
            </h1>
        </div>
        <div class="span10">
            <div class="span6">
                <h3>Property</h3>
            </div>
            <div class="span6 text-right">
                <h3>
                    <?php echo $this->Html->link('<i class="icon-plus-2"></i> Add', '/Properties/add/', array('escape' => false, 'title' => 'Add New')) ?>
                </h3>
            </div>
            <div class="span12">
                <table width="100%">

                    <thead class="border-bottom">
                        <tr>
                            <th class="text-center" width='5%'>No</th>
                            <th class="text-left">Name</th>
                            <th class="text-center" width='15%'>Actions</th>
                        </tr>
                    </thead>

                    <tbody>
                        <?php //debug($all)?>
                        <?php if (isset($lists) && sizeof($lists) != 0) { ?>
                            <?php $i = 1; ?>
                            <?php foreach ($lists as $a): ?>                        
                                <tr>
                                    <td class="text-center"><?php echo $i ?></td>
                                    <td><?php echo $a['Property']['name'] ?></td>
                                    <td class="text-center">
                                        <?php echo $this->Html->link('<i class="icon-monitor"></i>', '/Properties/view/' . $a['Property']['id'], array('escape' => false, 'title' => 'View Details')) ?> 
                                        &nbsp;&nbsp;|&nbsp;&nbsp;
                                        <?php echo $this->Html->link('<i class="icon-pencil"></i>', '/Properties/edit/' . $a['Property']['id'], array('escape' => false, 'title' => 'View Details')) ?> 
                                        &nbsp;&nbsp;|&nbsp;&nbsp;
                                        <?php echo $this->Html->link('<i class="icon-remove"></i>', '/Properties/delete/' . $a['Property']['id'], array('escape' => false, 'title' => 'Delete'), 'Do you want to remove this contact?') ?> 
                                    </td>
                                </tr>
                                <?php $i++; ?>
                            <?php endforeach; ?> 
                        <?php }else { ?>
                            <tr>
                                <td colspan="3">
                                    <h5 class="text-center c-red margin-top">Not found request from customer.</h5>
                                </td>
                            </tr>
                        <?php } ?>
                    </tbody>

                </table>
            </div>
        </div>
    </div>


</div>